﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

using DM_Article.Model;
using DM_Article.Bll;

public partial class second : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        using (SqlConnection cn = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"].ToString()))
        {
            DataSet ds;
            //for  点击排行
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterDJPH.DataSource = ds;
            this.repeaterDJPH.DataBind();

            //for  推荐阅读
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterTJYD.DataSource = ds;
            this.repeaterTJYD.DataBind();

            //for  旅游咨询
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterLVZX.DataSource = ds;
            this.repeaterLVZX.DataBind();

            //for  海外留学
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterHWLX.DataSource = ds;
            this.repeaterHWLX.DataBind();

            //for  经典路线
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterJDLX.DataSource = ds;
            this.repeaterJDLX.DataBind();

            //for  酒店机票
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterJDJP.DataSource = ds;
            this.repeaterJDJP.DataBind();

            //for  景点介绍
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterJDJS.DataSource = ds;
            this.repeaterJDJS.DataBind();

            //for  旅行游记
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterLXYJ.DataSource = ds;
            this.repeaterLXYJ.DataBind();

            //for  旅行贴士
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterLXTS.DataSource = ds;
            this.repeaterLXTS.DataBind();
        }

    }
}